/*********************************************************************
	Rhapsody	: 7.5.2
	Login		: Administrator
	Component	: Test
	Configuration 	: DefaultConfig
	Model Element	: DefaultConfig
//!	Generated Date	: Wed, 1, Dec 2010 
	File Path	: Test/DefaultConfig/MainTest.java
*********************************************************************/


//## auto_generated
import RobotPkg.*;
//## auto_generated
import com.ibm.rational.rhapsody.oxf.*;
//## auto_generated
import com.ibm.rational.rhapsody.animcom.*;

//----------------------------------------------------------------------------
// MainTest.java                                                                  
//----------------------------------------------------------------------------


//## ignore 
public class MainTest {
    
    protected static Engine p_Engine = null;
    protected static RobotController p_RobotController = null;
    protected static Sensor p_Sensor = null;
    //#[ ignore
    // link with events in order to register them in the animation browser
    static {
      // Setting Animation Default Port 
      AnimTcpIpConnection.setDefaultPort(6423);
      // Registering Events 
      try {
        
            Class.forName("RobotPkg.evLine");
            Class.forName("RobotPkg.evOnOff");
            Class.forName("RobotPkg.evProcess");
    
        // Registering Static Classes 
        
      }
      catch(Exception e) { 
         System.err.println(e.toString());
         e.printStackTrace(System.err);
      }
    }
    //#]
    
    
    //## configuration Test::DefaultConfig 
    public static void main(String[] args) {
        RiJOXF.Init(null, 0, 0, true, args);
        MainTest initializer_Test = new MainTest();
        p_Engine = new Engine();
        p_RobotController = new RobotController(RiJMainThread.instance());
        p_RobotController.startBehavior();
        p_Sensor = new Sensor();
        //#[ configuration Test::DefaultConfig 
        //#]
        RiJOXF.Start();
        p_Engine=null;
        p_RobotController=null;
        p_Sensor=null;
    }
    
}
/*********************************************************************
	File Path	: Test/DefaultConfig/MainTest.java
*********************************************************************/

